<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>vue入门演示</title>
  <link rel="stylesheet" href="./css/h1.css">
</head>

<body>

  <div id="app">

    <h1>{{title}}</h1>

    <div>
      <input type="text" placeholder="用户名" v-model="user.username">
      <input type="password" placeholder="登录密码" v-model="user.pwd">
      <button @click="showUser()">确定</button>
      <pre>{{user}}</pre>
    </div>

    <div class="menus">

      <div v-for="m in menus">
        <a :href="m.href" target="_blank">{{ m.title }}</a>
      </div>

      <!-- {{menus}} -->
    </div>
  </div>


  <script src="js/h1.js" type="module"></script>
</body>

</html>